﻿@using Huirui.Cavan.Domain.MainBoundedContext.SystemModule
@model Huirui.Cavan.Presentation.ViewModel.SystemModule.UserAccountViewModel
@{
    ViewBag.Title = "login";
    Layout = null;
}
<div id="loginWd" style="width: 900px; height: 100px; padding: 20px;">
    @using (Html.BeginForm(ActionConst.LOGIN, ControllerConst.HOME))
    { 
        <table class="form_heard">
            <tr>
                <td style="width:100px">
                    <label>账户:</label>
                </td>
                <td style="width:160px">
                    @Html.TextBoxFor(m => m.Item.Name, new { id = "log_name" })
                </td>
                <td style="width:100px">
                    <label>密码:</label>
                </td>
                <td style="width:160px">
                    @Html.TextBoxFor(m => m.Item.Password, new { id = "log_pwd",type = "password"})
                </td>
                 <td style="width:100px">
                    <input id="log_ok" type="submit" value="登陆" />
                </td>
                <td style="width:160px">
                    @Html.Raw((Model!= null && Model.Item.IsLocked)?"账户密码错误":"")
                </td>
            </tr>
        </table>
    }
</div>